package data.nanjing.expo.models.domain.base;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 个人基本信息认证
 *
 * @author ChanJi
 * @create 2018-02-26 15:37
 * trade_person_certification
 **/
public class PersonCertification {
    /**
     * 个人认证信息id
     * 主键、自增
     * person_id
     */
    private Integer personId;
    /**
     * 用户id
     * 作为外键
     * user_id
     */
    private Integer userId;

    /**
     * 性别
     * person_sex
     */
    private String personSex;
    /**
     * 姓名
     * person_name
     */
    private String personName;
    /**
     * 邮箱
     * person_mail
     */
    private String personMail;
    /**
     * 地区
     * person_location
     */
    private String personLocation;
    /**
     * 个人简历地址
     * profile_path
     */
    private String profilePath;
    /**
     * 项目经验(个人简介)
     * 200以内
     * experience
     */
    private String experience;
    /**
     * 联系电话
     * person_phone
     */
    private String personPhone;
    /**
     * 身份证号码
     * identity_card
     */
    private String identityCard;
    /**
     * 身份证图片地址
     * identity_card_path
     */
    private String identityCardPath;
    /**
     * 基本认证状态 1为通过，-1为不通过
     * identity_state
     */
    private Integer identityState;
    /**
     * 创建时间
     * gmt_create
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtCreate;
    /**
     * 上次更新时间
     * gmt_modified
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date  gmtModified;

    public PersonCertification() {
    }

    public Integer getPersonId() {
        return personId;
    }

    public void setPersonId(Integer personId) {
        this.personId = personId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getPersonSex() {
        return personSex;
    }

    public void setPersonSex(String personSex) {
        this.personSex = personSex;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getPersonMail() {
        return personMail;
    }

    public void setPersonMail(String personMail) {
        this.personMail = personMail;
    }

    public String getPersonLocation() {
        return personLocation;
    }

    public void setPersonLocation(String personLocation) {
        this.personLocation = personLocation;
    }

    public String getProfilePath() {
        return profilePath;
    }

    public void setProfilePath(String profilePath) {
        this.profilePath = profilePath;
    }

    public String getExperience() {
        return experience;
    }

    public void setExperience(String experience) {
        this.experience = experience;
    }

    public String getPersonPhone() {
        return personPhone;
    }

    public void setPersonPhone(String personPhone) {
        this.personPhone = personPhone;
    }

    public String getIdentityCard() {
        return identityCard;
    }

    public void setIdentityCard(String identityCard) {
        this.identityCard = identityCard;
    }

    public String getIdentityCardPath() {
        return identityCardPath;
    }

    public void setIdentityCardPath(String identityCardPath) {
        this.identityCardPath = identityCardPath;
    }

    public Integer getIdentityState() {
        return identityState;
    }

    public void setIdentityState(Integer identityState) {
        this.identityState = identityState;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "PersonCertification{" +
                "personId=" + personId +
                ", userId=" + userId +
                ", personSex='" + personSex + '\'' +
                ", personName='" + personName + '\'' +
                ", personMail='" + personMail + '\'' +
                ", personLocation='" + personLocation + '\'' +
                ", profilePath='" + profilePath + '\'' +
                ", experience='" + experience + '\'' +
                ", personPhone='" + personPhone + '\'' +
                ", identityCard='" + identityCard + '\'' +
                ", identityCardPath='" + identityCardPath + '\'' +
                ", identityState=" + identityState +
                ", gmtCreate='" + gmtCreate + '\'' +
                ", gmtModified='" + gmtModified + '\'' +
                '}';
    }
}
